package day_03;

public class test {
    public static void main(String[] args){
        String a="01";
        String b="01";
        String c=a;
        String aa=new String("01");
        String bb=new String("01");
        System.out.println("1 a==b "+ (a==b));
        System.out.println("2 a.equals(b) "+a.equals(b));
        System.out.println("3 b.equals(c) "+b.equals(c));
        System.out.println("4 a==aa "+(a==aa));
        System.out.println("5 a.equals(aa) "+a.equals(aa));
        System.out.println("6  aa==bb "+(aa==bb));
        System.out.println("7 aa.equals(bb) "+aa.equals(bb));
    }
}
